<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
<body>

This text above will not be displayed.

<ui:composition template="/WEB-INF/layout/template.xhtml">
	<ui:define name="phaseListener">
	</ui:define>
	<ui:define name="jscode">
		<!-- TinyMCE -->
		<script type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
		<script type="text/javascript">
	tinyMCE.init({
		// General options
		mode : "exact",
		elements : "new_form:editor_area",
		theme : "advanced",
		plugins : "safari,pagebreak,style,layer,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,preview,media,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",

		
		// Theme options
		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,preview,|,forecolor,backcolor",
		theme_advanced_buttons3 : "hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl,|,fullscreen,|,insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,pagebreak",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,

		// Example content CSS (should be your site CSS)
		content_css : "css/content.css",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	});
</script>
		<!-- /TinyMCE -->
	</ui:define>
This text will not be displayed.

  <ui:define name="title">
    ryan.log
  </ui:define>
	<ui:define name="secondaryContent">
		<ui:include src="secondaryContent.xhtml" />
	</ui:define>

This text will not be displayed.
	<ui:define name="primaryContent">
		<div id="primaryContent">
		<h2>创建文章</h2>
		<h:form id="new_form" >
			<table cellspacing="1" width="100%">
				<tr>
					<td class="row1">标题</td>
					<td><h:inputText value="#{newPage.title}" id="post_title"
						size="45" style="width: 600px;" maxlength="60"></h:inputText></td>
				</tr>
				<tr>
					<td class="row1">分类</td>
					<td><h:selectOneMenu value="#{newPage.categoryId}" style="width: 200px;">
						<f:selectItems value="#{newPage.catItems}" />
					</h:selectOneMenu><h:outputLabel value="  置顶" for="pinnedToMain" /><h:selectBooleanCheckbox id="pinnedToMain" value="#{newPage.pinnedToMain}"></h:selectBooleanCheckbox></td>
				</tr>
				<tr>
					<td class="row1">摘要</td>
					<td><h:inputTextarea value="#{newPage.summary}" style="width: 680px; height: 50px;"></h:inputTextarea></td>
				</tr>

				<tr>
					<td colspan="2"><h:inputTextarea value="#{newPage.content}"
						id="editor_area" cols="50" rows="30" 
						style="width: 780px; height: 550px;"></h:inputTextarea></td>
				</tr>
				<tr>
      <td colspan="2" align="left"> 
      	<h:commandButton action="#{newPage.saveNewPost}" value=" 保存 " styleClass="button"></h:commandButton>
      </td>

    </tr>
			</table>
		</h:form></div>
	</ui:define>

</ui:composition>

This text below will also not be displayed.

</body>
</html>